package com.zmj.framework.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.zmj.framework.bean.CardDetail;
import com.zmj.framework.bean.CardMoney;
import com.zmj.framework.bean.CardTime;
import com.zmj.framework.dao.CardDao;
import com.zmj.framework.service.CardManager;
@Service
@Transactional
public class CardManagerImpl implements CardManager {
	@Autowired
	private CardDao cardDao;
	
	public int saveCardMoney(CardMoney cardMoney,CardDetail cardDetail) {
		return this.cardDao.saveCardMoney(cardMoney,cardDetail);
	}

	public List<CardDetail> getCardDetailListByHykh(String hykh) {
		return this.cardDao.getCardDetailListByHykh(hykh);
	}

	public CardMoney getCardMoneyByHykh(String hykh) {
		return this.cardDao.getCardMoneyByHykh(hykh);
	}

	public int saveCardTime(List<CardTime> cardTimeList, CardDetail cardDetail) {
		return this.cardDao.saveCardTime(cardTimeList,cardDetail);
	}

	public List<CardTime> getCardTimeListByHykh(String hykh) {
		return this.cardDao.getCardTimeListByHykh(hykh);
	}

}
